Skip to content

WIP watch diff with upstream main branch - #6

Open
Jeronymous wants to merge 111 commits into
upstream-mainfrom
merge_hf_main
Open

WIP watch diff with upstream main branch#6
Jeronymous wants to merge 111 commits into
upstream-mainfrom
merge_hf_main

Conversation

@Jeronymous

Copy link
Copy Markdown
Member

No description provided.

Oligou and others added 30 commits October 14, 2025 11:51
…q len (131072) is larger than the maximum number of tokens that can be stored in KV cache (130944). Try increasing `gpu_memory_utilization` or decreasing `max_model_len` when initializing the engine"
…and new version of the dataset is different)
JoelNiklaus and others added 15 commits May 29, 2026 17:00
Expose the shared multilingual task-loading flag on the vLLM entrypoint and pass it through to PipelineParameters so vLLM can run built-in multilingual tasks.

Co-authored-by: Joel Niklaus <joel@hf.co>
Co-authored-by: Cursor <cursoragent@cursor.com>
- score the query as the continuation when choices is None (the_pile/wikitext)
- shift logits by one so tokens line up with their predictions
- stop the sample cache dropping PERPLEXITY results
- add a rolling-perplexity test and check the cached wrapper returns all docs
litellm.completion expects an int, not a (N,) tuple.
Current RAG-style tasks need the row-specific retrieved context to
live in the system role, not prepended to the user query. Opt-in
flag keeps all existing tasks unchanged.
squad_v2 was filtering out questions with no answer, which is
exactly the half of the dataset that tests refusal behavior.
Replace the filter with an explicit "unanswerable" choice.
…options, not all the possible ones. Also increase generation_size from 100 to 1024 (for thinking models)
The generator had been narrowed to MCFFormulation + the ALL label only,
which dropped the _cf/_hybrid variants and the CA/CS/UNK labels. Restore
the full formulation list and sensitivity labels.
Jeronymous and others added 14 commits June 17, 2026 17:45
…dict=False to get token ids, not a BatchEncoding)
…ggingface#1271)

Under an accelerate data-parallel launch every rank holds the full gathered
results and wrote the same parquet cache file concurrently, corrupting it and
making subsequent loads fail. Write the cache only on the main process and add
a barrier so the other ranks wait for that write before reading. Add a
regression test.

Fixes huggingface#1102
…#1326)

* Store provider credentials as SecretStr in model configs

LiteLLMModelConfig.api_key and TGIModelConfig.inference_server_auth were
plain str fields, which meant they were retained in plaintext wherever a
model config gets serialized (e.g. EvaluationTracker.results). Switch
both to pydantic SecretStr, which masks the value in reprs and default
serialization, and additionally exclude them explicitly when building
the results dict as a second layer.

The real value is still unwrapped via get_secret_value() at the specific
call sites that need it for the actual outgoing request. Added
regression tests asserting the credential never appears in the
serialized results dict.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Store JudgeLM credentials as SecretStr

JudgeLM.api_key was a plain str consumed directly by several backend
clients (OpenAI, AsyncInferenceClient, litellm). Wrap it in SecretStr on
assignment and unwrap via get_secret_value() at each usage site, for
consistency with the other model configs and to remove any reliance on
incidental string formatting to keep it out of logs or serialized
output.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Fix pre-existing ruff format drift in README and docs

Unrelated cleanup so CI's Quality check is green on this branch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Nathan Habib <nathan_habib@Mac.lan>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Bring in 19 upstream commits (up to 932e1f2), including Swiss legal NLP
tasks + LEXam, SecretStr credential storage, rolling-perplexity and
bits-per-byte fixes, and multilingual task loading in vLLM.

Conflicts resolved in:
- metrics/__init__.py: kept the fork's permissive batched-output handling
  (extracts all submetric keys) to support the fork's custom batched metrics.
- metrics/utils/llm_as_judge.py: kept the fork's max_tokens int fix (not the
  upstream (max_new_tokens,) tuple) and took upstream's SecretStr api_key /
  base_url plumbing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants